package com.gitee.wsl.ext.number

import kotlin.math.floor

fun Float.fract() = this - floor(this)

fun Double.fract() = this - floor(this)